<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>爱家-个人信息</title>
    <link href="/static/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="/static/css/reset.css" rel="stylesheet">
    <link href="/static/plugins/bootstrap-datepicker/css/bootstrap-datepicker.min.css" rel="stylesheet">
    <link href="/static/css/ihome/main.css" rel="stylesheet">
    <link href="/static/css/ihome/profile.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <div class="top-bar">
        <div class="nav-bar">
            <h3 class="page-title">个人信息</h3>
            <a class="nav-btn fl" href="/my.html"><span><i class="fa fa-angle-left fa-2x"></i></span></a>
        </div>
    </div>
    <div class="menus-con">
        <ul class="menus-list">
            <li>
                <div class="menu-title">
                    <h3>头像</h3>
                </div>
                <div class="menu-content">
                    <img id="user-avatar" src="">
                    <div class="menu-text">
                        <form id="form-avatar" method="post" enctype="multipart/form-data">
                            <input type="hidden" name="avatar1">
                            选择头像：<input type="file" accept="image/*" name="avatar">
                            <input type="submit" class="btn btn-success" value="上传">
                        </form>
                        <div id="error_msg1" class="error-msg"><i class="fa fa-exclamation-circle"></i>上传头像失败，请稍候重试
                        </div>
                    </div>
                </div>

            </li>
            <li>
                <div class="menu-title">
                    <h3>用户名</h3>
                </div>
                <div class="menu-content">
                    <form id="form-name">
                        <input type="text" name="name" id="user-name">
                        <!-- 添加点击事件跳转我的个人页面-->
                        <input type="submit" class="btn btn-success" value="保存" onClick="location.href='/my.html'">
                    </form>
                    <div class="menu-title">
                        <h3>修改密码</h3>
                    </div>
                    <div class="menu-content">
                        <form id="form-pwd" >
                            <!-- 添加旧密码输入-->
                            旧密码：<input type="password" name="old_pwd" id="user-oldpwd" style="display: block">
                            新密码：<input type="password" name="new_pwd" id="user-newpwd" value="">

                            确认密码：<input type="password" name="new_pwd2" id="user-newpwd2" value="">
                            <input type="submit" class="btn btn-success" value="确认" >
                        </form>
                        <div id="error_msg2" class="error-msg">
                        </div>
                    </div>
            </li>
        </ul>
    </div>
    <div class="popup_con">
        <div class="popup">
            <p>保存成功！</p>
        </div>

        <div class="mask"></div>
    </div>
    <div class="footer">
        <p><span><i class="fa fa-copyright"></i></span>爱家租房&nbsp;&nbsp;享受家的温馨</p>
    </div>
</div>

<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/jquery.form.min.js"></script>
<script src="/static/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="/static/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
<script src="/static/plugins/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script src="/static/js/ihome/status_code.js"></script>
<script src="/static/js/ihome/profile.js"></script>
</body>
</html>